package com.github.wxiaoqi.security.crm.core.rest;

import java.util.Map;

import javax.validation.Valid;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.github.wxiaoqi.security.common.crm.request.MerchantAccountRequest;
import com.github.wxiaoqi.security.common.rest.BaseController;
import com.github.wxiaoqi.security.crm.core.biz.MerchantAccountBiz;
import com.github.wxiaoqi.security.crm.core.entity.MerchantAccount;

@RestController
@RequestMapping("merchantAccount")
public class MerchantAccountController extends BaseController<MerchantAccountBiz,MerchantAccount> {
	/**
	 * 查询商户账户列表
	 * @author centerroot
	 * @time 创建时间:2018年8月16日下午4:19:06
	 * @param platformAccoutConfigRequest
	 * @return
	 */
	@RequestMapping(value = "/pageList",method = RequestMethod.POST)
    @ResponseBody
    public Map<String, Object> pageList(@RequestBody @Valid MerchantAccountRequest merchantAccountRequest){
		Map<String, Object> respMap = baseBiz.pageList(merchantAccountRequest);
        return respMap;
    }
}